body{
  margin: 0;
  padding: 0;
  background: #e74c3c;

}
.search-box{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: #f1c40f;
  height: 40px;
  border-radius: 40px;
}
.search-box:hover > .search-txt{
  width: 240px;
  padding: 0 6px;
}
.search-box:hover > .search-btn{
  background: white;
}
.search-btn{
  color: #3498db;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1c40f;
  display: flex;
  justify-content: center;
  align-items: center;
}
.search-txt{
  border:none;
  background: none;
  outline: none;
  float: left;
  padding: 0;
  color: white;
  font-size: 16px;
  transition: 0.4s;
  line-height: 40px;
  width: 0px;
}
